package com.zangchat.domain;

import lombok.Data;

public class ChatUsersDTO extends ChatUsers {
    /** 用户缓存中的经度*/
    private double longitude;
    /** 用户缓存中的纬度*/
    private double latitude;
    /** 指定范围 单位km ，可根据{@link org.springframework.data.geo.Metrics} 进行设置*/
    private double distance;
    /** 用户经度*/
    private double userLng;
    /** 用户纬度*/
    private double userLat;

    public double getLongitude() {
        return longitude;
    }

    public ChatUsersDTO setLongitude(double longitude) {
        this.longitude = longitude;
        return this;
    }

    public double getLatitude() {
        return latitude;
    }

    public ChatUsersDTO setLatitude(double latitude) {
        this.latitude = latitude;
        return this;
    }

    public double getDistance() {
        return distance;
    }

    public ChatUsersDTO setDistance(double distance) {
        this.distance = distance;
        return this;
    }

    public double getUserLng() {
        return userLng;
    }

    public ChatUsersDTO setUserLng(double userLng) {
        this.userLng = userLng;
        return this;
    }

    public double getUserLat() {
        return userLat;
    }

    public ChatUsersDTO setUserLat(double userLat) {
        this.userLat = userLat;
        return this;
    }
}
